package com.app.myApp.dao;

import com.app.myApp.dataobject.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; // 导入 @Param 注解

@Mapper
public interface UserDAO {

    int insertUser(
            @Param("email") String email,
            @Param("password") String password
    );

    int deleteUser(@Param("email") String email);

    int updateUser(
            @Param("email") String email,
            @Param("password") String password
    );

    UserDO findUserByEmail(@Param("email") String email);
}